<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<TinyGet.Models.TinyLink>" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>TinyGet - Shorten your links!</title>
    <link href="/Content/Toolbar.css" rel="stylesheet" type="text/css" />

    <script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $('#toolbar').hide().fadeIn(1000);
        });
    </script>
    
    
<script type="text/javascript">

<<<<<<< .mine
<script type="text/javascript">

    function swapimage() {
        var currImage = document.getElementById("up").src;
        document.getElementById("up").src = currImage == "../../Content/aupgray.gif" ? "../../Content/adowngray.gif" : "../../Content/aupgray.gif";
}

</script>

=======
    function swapimage() {
        var currImage = document.getElementById("up").style.backgroundImage;
        document.getElementById("up").style.backgroundImage = currImage == 'url(/Content/aupgray.gif)' ? 'url(/Content/adowngray.gif)' : 'url(/Content/aupgray.gif)';
    }
    
</script>

>>>>>>> .r17
</head>
<body>
    <div id="toolbar">
        <ul class="t-main">
            <li>
            <a href="http://www.tinyget.com">TinyGet</a> 
            </li>
            <li>Link: <a href="<%=Model.Url %>">
<<<<<<< .mine
                <%=Model.Url %></a> </li>
            <li>
                <div class="vote">
                    <img id="up" alt="^" src="../../Content/aupgray.gif" onclick="swapimage()"/>
                    <img id="down" alt="v" src="../../Content/adowngray.gif" onclick="swapimage()"/>
                </div>
                 Votes:
=======
                <%=Model.Url %></a> 
                <br />
                Votes:
>>>>>>> .r17
                <%=Model.Votes %>
                Visits:
                <%=Model.Visits %>
                Abusive Votes:
                <%=Model.AbusiveVotes %>
                </li>
                
            <li>
                <div class="midcol">
                     <div id="up" class="arrow up" onclick="swapimage()"/>
                <br />
                     <div id="down" class="arrow down" />
                </div>
             </li>
             <li>
                Share:
                <img src="../../Content/digg.png" />
                <img src="../../Content/twitter.png" />
                <img src="../../Content/facebook.png" />
                <img src="../../Content/email.png" />
            </li>
        </ul>
    </div>
    <iframe id="page" src="<%=Model.Url %>"></iframe>
</body>
</html>
